<!--
  // Ubiquity provides a standards-based suite of browser enhancements for
  // building a new generation of internet-related applications.
  //
  // The Ubiquity SMIL module adds SMIL support to the Ubiquity library.
  //
  // Copyright (C) 2008 Backplane Ltd.
  //
  // Licensed under the Apache License, Version 2.0 (the "License");
  // you may not use this file except in compliance with the License.
  // You may obtain a copy of the License at
  //
  //  http://www.apache.org/licenses/LICENSE-2.0
  //
  // Unless required by applicable law or agreed to in writing, software
  // distributed under the License is distributed on an "AS IS" BASIS,
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  // See the License for the specific language governing permissions and
  // limitations under the License.
-->
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:smil="http://www.w3.org/2005/SMIL21/BasicAnimation"
	xmlns:ev="http://www.w3.org/2001/xml-events"
	xmlns:xf="http://www.w3.org/2002/xforms"
>
	<head>
		<title>Test SMIL</title>
	  <link rel="stylesheet" href="default.css" type="text/css" />
		<script src="../../ubiquity-loader.js" type="text/javascript">/**/</script>
	</head>
	<body>
	  <div class="panel" id="panel">
			<div class="lipsum" id="content">
				Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam odio. Cras 
				tincidunt nulla sed magna. Proin consectetuer rhoncus mi. Sed tincidunt. 
				Pellentesque semper convallis libero. In in nibh. Aenean condimentum risus 
				tempor mauris. Cras et nibh. Donec at leo sed ligula tincidunt ornare. Ut id 
				dui ac metus semper aliquet. Suspendisse sed nisl. Curabitur dictum dignissim 
				purus. Ut mattis posuere justo. Pellentesque nisl velit, malesuada nec, 
				ullamcorper eu, bibendum vitae, risus. Aenean placerat tincidunt orci. Maecenas 
				placerat erat varius mi. Nunc in est in libero vestibulum laoreet. Etiam 
				libero. Phasellus ac leo.
			</div>
		</div>
		<div id="hidden">
			I was hidden
		</div>
		<div>
			<xf:trigger>
				<xf:label>Animate</xf:label>
				<xf:action ev:event="DOMActivate">
					<smil:animate targetElement="panel" attributeName="width" to="200" dur="3" repeatCount="indefinite"></smil:animate>
					<smil:animate targetElement="panel" attributeName="height" to="300" dur="1" repeatCount="3" fill="freeze"></smil:animate>
					<smil:animate targetElement="panel" attributeName="left" to="300" dur="1" repeatCount="1" fill="freeze"></smil:animate>
				  <smil:animateColor targetElement="content" attributeName="backgroundColor" to="#ffff00" from="#ccc" dur="0.5" repeatCount="10"></smil:animateColor>
				  <smil:animateColor targetElement="content" attributeName="color" to="#00ffff" from="#ccc" dur="0.5" fill="freeze" repeatCount="10"></smil:animateColor>
					<smil:set attributeName="display" targetElement="hidden" to="block" fill="freeze"></smil:set>
				</xf:action>
			</xf:trigger>
		</div>
	</body>
</html>